import instance from '@/utils/request'

export function Register(data) {
    return instance.request({
        method: 'post',
        url: '/user/register',
        data
    })
}

export function Login(data) {
    return instance.request({
        method: 'post',
        url: '/user/login',
        data
    })
}

export function Logout(data) {
    return instance.request({
        method: 'post',
        url: '/user/logout',
        data
    })
}